Fix crash in google reader on multiple files.
authorrobertl <robertl>
Fri, 17 Nov 2006 20:03:23 +0000 (20:03 +0000)
committerrobertl <robertl>
Fri, 17 Nov 2006 20:03:23 +0000 (20:03 +0000)
google.c

index 6ff6a8f595fba0a837a2e7fe0020f5cad70e7a2e..3c126ff621409c3439ac41bf1643d0ce075b435b 100644 (file)
--- a/google.c
+++ b/google.c
@@ -345,6 +345,20 @@ google_read(void)
                  }
                }
                xfree( script );
+               script = NULL;
+       }
+
+       /*
+        * 'Tis better to leak than crash when we are merging and 
+        * don't see an 'end' in the first file.  This feels a bit
+        * like plastering over a deeper problem...
+        *
+        */
+       if ( encoded_points ) {
+               encoded_points = NULL;
+       }
+       if ( encoded_levels ) {
+               encoded_levels = NULL;
        }
 }
 #endif